<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>XenC: XenCommon Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">XenC
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Open-source tool for data selection in NLP</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="namespaces.html"><span>Namespace&#160;List</span></a></li>
      <li><a href="namespacemembers.html"><span>Namespace&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">XenCommon Namespace Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Namespace containing all the common functions of XenC.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_common_1_1_splitter.html">Splitter</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Class defining a splitter.  <a href="class_xen_common_1_1_splitter.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_xen_common_1_1_xen_c_eption.html">XenCEption</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">XenC exception structure.  <a href="struct_xen_common_1_1_xen_c_eption.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ad4f4868634e46d6ee82e57d343a77abe"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ad4f4868634e46d6ee82e57d343a77abe"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespace_xen_common.html#ad4f4868634e46d6ee82e57d343a77abe">toString</a> (const T &amp;Value)</td></tr>
<tr class="memdesc:ad4f4868634e46d6ee82e57d343a77abe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template converting a value into a string with a precision of 20.  <a href="#ad4f4868634e46d6ee82e57d343a77abe">More...</a><br /></td></tr>
<tr class="separator:ad4f4868634e46d6ee82e57d343a77abe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b2d08955355a35d07efd74c466b91d1"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a3b2d08955355a35d07efd74c466b91d1"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespace_xen_common.html#a3b2d08955355a35d07efd74c466b91d1">toString0</a> (const T &amp;Value)</td></tr>
<tr class="memdesc:a3b2d08955355a35d07efd74c466b91d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template converting a value into a string with no precision.  <a href="#a3b2d08955355a35d07efd74c466b91d1">More...</a><br /></td></tr>
<tr class="separator:a3b2d08955355a35d07efd74c466b91d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fd9978be1bd41808ac4605c2e89d816"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a3fd9978be1bd41808ac4605c2e89d816"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespace_xen_common.html#a3fd9978be1bd41808ac4605c2e89d816">toInt</a> (const T &amp;Value)</td></tr>
<tr class="memdesc:a3fd9978be1bd41808ac4605c2e89d816"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template converting a value (generally a string) into an integer.  <a href="#a3fd9978be1bd41808ac4605c2e89d816">More...</a><br /></td></tr>
<tr class="separator:a3fd9978be1bd41808ac4605c2e89d816"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadf35ed2e4ebb9b556cda62563888113"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:aadf35ed2e4ebb9b556cda62563888113"><td class="memTemplItemLeft" align="right" valign="top">double&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespace_xen_common.html#aadf35ed2e4ebb9b556cda62563888113">toDouble</a> (const T &amp;Value)</td></tr>
<tr class="memdesc:aadf35ed2e4ebb9b556cda62563888113"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template converting a value (generally a string) into an double.  <a href="#aadf35ed2e4ebb9b556cda62563888113">More...</a><br /></td></tr>
<tr class="separator:aadf35ed2e4ebb9b556cda62563888113"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4ab9441365ea924eb6b5df051f53155"><td class="memTemplParams" colspan="2">template&lt;typename A , typename B &gt; </td></tr>
<tr class="memitem:ae4ab9441365ea924eb6b5df051f53155"><td class="memTemplItemLeft" align="right" valign="top">std::pair&lt; B, A &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespace_xen_common.html#ae4ab9441365ea924eb6b5df051f53155">flip_pair</a> (const std::pair&lt; A, B &gt; &amp;p)</td></tr>
<tr class="memdesc:ae4ab9441365ea924eb6b5df051f53155"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template flipping a pair key type with value type.  <a href="#ae4ab9441365ea924eb6b5df051f53155">More...</a><br /></td></tr>
<tr class="separator:ae4ab9441365ea924eb6b5df051f53155"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5d0528153fa3cb1a068e8eb37f8762e"><td class="memTemplParams" colspan="2">template&lt;typename A , typename B &gt; </td></tr>
<tr class="memitem:ac5d0528153fa3cb1a068e8eb37f8762e"><td class="memTemplItemLeft" align="right" valign="top">std::multimap&lt; B, A, std::greater&lt; B &gt; &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespace_xen_common.html#ac5d0528153fa3cb1a068e8eb37f8762e">flip_map</a> (const std::map&lt; A, B &gt; &amp;src)</td></tr>
<tr class="memdesc:ac5d0528153fa3cb1a068e8eb37f8762e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template flipping a multimap with descending order keys with values.  <a href="#ac5d0528153fa3cb1a068e8eb37f8762e">More...</a><br /></td></tr>
<tr class="separator:ac5d0528153fa3cb1a068e8eb37f8762e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a256a94d06d5072213efb1c50412f64bd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_xen_common.html#a256a94d06d5072213efb1c50412f64bd">wordCount</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:a256a94d06d5072213efb1c50412f64bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the word count of a string.  <a href="#a256a94d06d5072213efb1c50412f64bd">More...</a><br /></td></tr>
<tr class="separator:a256a94d06d5072213efb1c50412f64bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8c7a51d6bf68d64848f1ca9bc3805d0"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_xen_common.html#ab8c7a51d6bf68d64848f1ca9bc3805d0">getStdoutFromCommand</a> (std::string cmd)</td></tr>
<tr class="memdesc:ab8c7a51d6bf68d64848f1ca9bc3805d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes a system command and returns the output.  <a href="#ab8c7a51d6bf68d64848f1ca9bc3805d0">More...</a><br /></td></tr>
<tr class="separator:ab8c7a51d6bf68d64848f1ca9bc3805d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Namespace containing all the common functions of XenC. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ac5d0528153fa3cb1a068e8eb37f8762e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename A , typename B &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::multimap&lt;B, A, std::greater&lt;B&gt; &gt; XenCommon::flip_map </td>
          <td>(</td>
          <td class="paramtype">const std::map&lt; A, B &gt; &amp;&#160;</td>
          <td class="paramname"><em>src</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Template flipping a multimap with descending order keys with values. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">&amp;src</td><td>: the multimap to flip </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>flipped multimap with descending order </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_xen_common_ac5d0528153fa3cb1a068e8eb37f8762e_icgraph.png" border="0" usemap="#namespace_xen_common_ac5d0528153fa3cb1a068e8eb37f8762e_icgraph" alt=""/></div>
<map name="namespace_xen_common_ac5d0528153fa3cb1a068e8eb37f8762e_icgraph" id="namespace_xen_common_ac5d0528153fa3cb1a068e8eb37f8762e_icgraph">
<area shape="rect" id="node2" href="class_similarity.html#a1f3571ed28243447a475876a416ebc31" title="Accessor to the size of the similarity map. " alt="" coords="210,5,338,31"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae4ab9441365ea924eb6b5df051f53155"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename A , typename B &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::pair&lt;B, A&gt; XenCommon::flip_pair </td>
          <td>(</td>
          <td class="paramtype">const std::pair&lt; A, B &gt; &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Template flipping a pair key type with value type. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">&amp;p</td><td>: the map pair&lt;A, B&gt; to flip </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>flipped pair&lt;B, A&gt; </dd></dl>

</div>
</div>
<a class="anchor" id="ab8c7a51d6bf68d64848f1ca9bc3805d0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string XenCommon::getStdoutFromCommand </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>cmd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Executes a system command and returns the output. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cmd</td><td>: the command to execute </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the output of the executed command </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_xen_common_ab8c7a51d6bf68d64848f1ca9bc3805d0_icgraph.png" border="0" usemap="#namespace_xen_common_ab8c7a51d6bf68d64848f1ca9bc3805d0_icgraph" alt=""/></div>
<map name="namespace_xen_common_ab8c7a51d6bf68d64848f1ca9bc3805d0_icgraph" id="namespace_xen_common_ab8c7a51d6bf68d64848f1ca9bc3805d0_icgraph">
<area shape="rect" id="node2" href="class_phrase_table.html#ad7b885bf055e632ef0a3ea08b3a56215" title="Initialization function from an already instanciated XenFile. " alt="" coords="248,12,398,37"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aadf35ed2e4ebb9b556cda62563888113"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">double XenCommon::toDouble </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>Value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Template converting a value (generally a string) into an double. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">&amp;Value</td><td>: the value to convert </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string containing the converted value </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_xen_common_aadf35ed2e4ebb9b556cda62563888113_icgraph.png" border="0" usemap="#namespace_xen_common_aadf35ed2e4ebb9b556cda62563888113_icgraph" alt=""/></div>
<map name="namespace_xen_common_aadf35ed2e4ebb9b556cda62563888113_icgraph" id="namespace_xen_common_aadf35ed2e4ebb9b556cda62563888113_icgraph">
<area shape="rect" id="node2" href="class_xen_i_o.html#af153c980efc7a1bf6994300ca2a5edc7" title="Reads a evaluation/best point distribution file. " alt="" coords="213,5,329,31"/>
<area shape="rect" id="node4" href="class_wfile.html#a481ea084ad9b6b89fb5777ec7221494e" title="Accessor to the size of the weights file. " alt="" coords="220,55,323,80"/>
<area shape="rect" id="node3" href="class_eval.html#ae880ef126254582bacc64f2902789d7b" title="Constructor from a string. " alt="" coords="377,5,458,31"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a3fd9978be1bd41808ac4605c2e89d816"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int XenCommon::toInt </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>Value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Template converting a value (generally a string) into an integer. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">&amp;Value</td><td>: the value to convert </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string containing the converted value </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_xen_common_a3fd9978be1bd41808ac4605c2e89d816_icgraph.png" border="0" usemap="#namespace_xen_common_a3fd9978be1bd41808ac4605c2e89d816_icgraph" alt=""/></div>
<map name="namespace_xen_common_a3fd9978be1bd41808ac4605c2e89d816_icgraph" id="namespace_xen_common_a3fd9978be1bd41808ac4605c2e89d816_icgraph">
<area shape="rect" id="node2" href="class_phrase_table.html#ad7b885bf055e632ef0a3ea08b3a56215" title="Initialization function from an already instanciated XenFile. " alt="" coords="186,5,336,31"/>
<area shape="rect" id="node3" href="class_xen_i_o.html#af153c980efc7a1bf6994300ca2a5edc7" title="Reads a evaluation/best point distribution file. " alt="" coords="203,55,319,80"/>
<area shape="rect" id="node4" href="class_eval.html#ae880ef126254582bacc64f2902789d7b" title="Constructor from a string. " alt="" coords="384,55,465,80"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad4f4868634e46d6ee82e57d343a77abe"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::string XenCommon::toString </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>Value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Template converting a value into a string with a precision of 20. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">&amp;Value</td><td>: the value to convert </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string containing the converted value </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_xen_common_ad4f4868634e46d6ee82e57d343a77abe_icgraph.png" border="0" usemap="#namespace_xen_common_ad4f4868634e46d6ee82e57d343a77abe_icgraph" alt=""/></div>
<map name="namespace_xen_common_ad4f4868634e46d6ee82e57d343a77abe_icgraph" id="namespace_xen_common_ad4f4868634e46d6ee82e57d343a77abe_icgraph">
<area shape="rect" id="node2" href="eval_8cpp.html#a08bdd00a4373b59f0e8040c9b62e66ec" title="Thread&#45;safe evaluation function. " alt="" coords="271,115,343,141"/>
<area shape="rect" id="node3" href="class_eval.html#a0c3f6f4605b2763e8e18a12b54779baf" title="Computes an evaluation bount by the high and low integers (in percentage) " alt="" coords="486,77,582,102"/>
<area shape="rect" id="node4" href="class_eval.html#a9f7cf5cbc48c414a0cef2a8ccb27ad56" title="Computes the best theoretical point based on current evaluation. " alt="" coords="660,46,748,71"/>
<area shape="rect" id="node5" href="class_mode.html#a08d61f2bf10a36780a805fd64f43886d" title="Extracts a random sample from a give Corpus. " alt="" coords="233,366,381,391"/>
<area shape="rect" id="node6" href="class_bi_x_entropy.html#a55ad423050eae54a09ce73ca24598ca4" title="Function in charge of launching the filtering mode. " alt="" coords="467,366,601,391"/>
<area shape="rect" id="node7" href="class_mono_x_entropy.html#ab82ba430051ad6ca073f9f4f74dc25ae" title="Function in charge of launching the filtering mode. " alt="" coords="456,441,612,466"/>
<area shape="rect" id="node8" href="class_p_t_scoring.html#a51b8eadcb3b7fa0264c09b3a0908f2c0" title="Function in charge of launching the filtering mode. " alt="" coords="469,643,599,669"/>
<area shape="rect" id="node9" href="class_simple_p_p_l.html#a0cbcec72a693b6bf700c3d1802026be1" title="Function in charge of launching the filtering mode. " alt="" coords="467,517,601,542"/>
<area shape="rect" id="node10" href="class_xen_i_o.html#ac4fbd0582c974bb4c11c225ef467f26a" title="Writes monolingual scored/sorted result files. " alt="" coords="223,517,391,542"/>
<area shape="rect" id="node11" href="class_xen_i_o.html#ad3264b7bde95ba72494ab9db3804ad11" title="Writes bilingual scored/sorted result files. " alt="" coords="234,415,380,441"/>
<area shape="rect" id="node12" href="class_xen_i_o.html#a6c32040f72b5d39ead7b08874beb65a3" title="Writes a new rescored phrase&#45;table. " alt="" coords="238,669,376,694"/>
<area shape="rect" id="node13" href="class_xen_i_o.html#a507884a2eeb21b0fd3a7816ac2187beb" title="Writes an evaluation/best point distribution file. " alt="" coords="474,303,594,329"/>
<area shape="rect" id="node15" href="class_xen_i_o.html#aeb32c268deb43ffb242f30726ff4105b" title="Writes a part of the text of a XenResult given a percentage. " alt="" coords="239,165,375,190"/>
<area shape="rect" id="node16" href="_xen_8cpp.html#a59cff1fcf7715b591b35b6a17c440a72" title="Computes the output file name. " alt="" coords="258,214,355,239"/>
<area shape="rect" id="node18" href="class_xen_l_mken.html#a7ce273f39e73dcbf814ec0ecfc2fcbc6" title="Estimates a language model based on the provided data. " alt="" coords="233,718,381,743"/>
<area shape="rect" id="node19" href="class_xen_l_mken.html#a1fe6edbcbd59bd0f28a6bb5385ad9557" title="Computes the KenLM stats of a Corpus at a document level. " alt="" coords="206,767,408,793"/>
<area shape="rect" id="node14" href="_xen_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97" title="Main function of XenC. " alt="" coords="679,227,729,253"/>
<area shape="rect" id="node17" href="_xen_8cpp.html#abd605e012987328a9f2fde549b82b0f7" title="Controls the mandatory options. " alt="" coords="487,202,581,227"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a3b2d08955355a35d07efd74c466b91d1"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::string XenCommon::toString0 </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>Value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Template converting a value into a string with no precision. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">&amp;Value</td><td>: the value to convert </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string containing the converted value </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_xen_common_a3b2d08955355a35d07efd74c466b91d1_icgraph.png" border="0" usemap="#namespace_xen_common_a3b2d08955355a35d07efd74c466b91d1_icgraph" alt=""/></div>
<map name="namespace_xen_common_a3b2d08955355a35d07efd74c466b91d1_icgraph" id="namespace_xen_common_a3b2d08955355a35d07efd74c466b91d1_icgraph">
<area shape="rect" id="node2" href="class_mode.html#a08d61f2bf10a36780a805fd64f43886d" title="Extracts a random sample from a give Corpus. " alt="" coords="213,55,361,80"/>
<area shape="rect" id="node5" href="class_xen_i_o.html#a507884a2eeb21b0fd3a7816ac2187beb" title="Writes an evaluation/best point distribution file. " alt="" coords="227,104,347,129"/>
<area shape="rect" id="node3" href="class_bi_x_entropy.html#a55ad423050eae54a09ce73ca24598ca4" title="Function in charge of launching the filtering mode. " alt="" coords="419,5,554,31"/>
<area shape="rect" id="node4" href="class_mono_x_entropy.html#ab82ba430051ad6ca073f9f4f74dc25ae" title="Function in charge of launching the filtering mode. " alt="" coords="409,55,565,80"/>
<area shape="rect" id="node6" href="_xen_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97" title="Main function of XenC. " alt="" coords="462,104,512,129"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a256a94d06d5072213efb1c50412f64bd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int XenCommon::wordCount </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the word count of a string. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">&amp;str</td><td>: the string to count the words </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of words of the string </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespace_xen_common_a256a94d06d5072213efb1c50412f64bd_icgraph.png" border="0" usemap="#namespace_xen_common_a256a94d06d5072213efb1c50412f64bd_icgraph" alt=""/></div>
<map name="namespace_xen_common_a256a94d06d5072213efb1c50412f64bd_icgraph" id="namespace_xen_common_a256a94d06d5072213efb1c50412f64bd_icgraph">
<area shape="rect" id="node2" href="class_corpus.html#ac6b8e43e77d7d348fe76a840cbcc57a9" title="Put the printing status of a line to false. " alt="" coords="227,5,369,31"/>
<area shape="rect" id="node3" href="class_mode.html#a08d61f2bf10a36780a805fd64f43886d" title="Extracts a random sample from a give Corpus. " alt="" coords="224,55,372,80"/>
<area shape="rect" id="node4" href="class_bi_x_entropy.html#a55ad423050eae54a09ce73ca24598ca4" title="Function in charge of launching the filtering mode. " alt="" coords="430,29,565,55"/>
<area shape="rect" id="node5" href="class_mono_x_entropy.html#ab82ba430051ad6ca073f9f4f74dc25ae" title="Function in charge of launching the filtering mode. " alt="" coords="420,79,576,104"/>
</map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 18 2016 17:22:38 for XenC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
